﻿//  --------------------------------
//  Copyright (c) AW Systems, Inc. All rights reserved.
//  This source code is made available under the terms of the Microsoft Public License (Ms-PL)
//  http://www.codeplex.com/SLAM/license
//  ---------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Slam.Configuration
{
	/// <summary>
	/// Represents a field configured for a type managed by SLAM to establish an association.
	/// </summary>
	public class AssociationField : Field
	{
		/// <summary>
		/// The association's name.
		/// </summary>
		public string AssociationName { get; set; }

		/// <summary>
		/// The name of the type configured in SLAM to be associated with the
		/// Association Field's parent type through this association.
		/// </summary>
		public string AssociatedTypeName { get; set; }

		/// <summary>
		/// Creates a new AssociationField instance.
		/// </summary>
		public AssociationField() { }

		/// <summary>
		/// Creates a new AssociationField instance with the given Name.
		/// </summary>
		/// <param name="name">The Name of the new field.</param>
		public AssociationField(string name)
		{
			this.Name = name;
		}
	}
}
